package com.zzy.system.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zzy.system.domain.SaleOrderDetail;
import com.zzy.system.domain.SaleOrderTrace;
import com.zzy.system.mapper.SaleOrderDetailMapper;
import com.zzy.system.mapper.SaleOrderTraceMapper;
import com.zzy.system.service.ISaleOrderDetailService;
import com.zzy.system.service.ISaleOrderTraceService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SaleOrderTraceServiceImpl extends ServiceImpl<SaleOrderTraceMapper, SaleOrderTrace> implements ISaleOrderTraceService {
    private static final Logger log = LoggerFactory.getLogger(SaleOrderTraceServiceImpl.class);

    @Override
    public void saveOrderTrace(List<SaleOrderTrace> saleOrderDetailList) {
        if(!saleOrderDetailList.isEmpty()){
            this.saveBatch(saleOrderDetailList);
        }
    }
}